package com.jtbd.exceptions;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class GlobalExceptionHandler<RESULT> {

    protected RESULT handleException(SystemException e) {
        log.error("GlobalExceptionHandler: Time={}\nError={}", System.currentTimeMillis(), e);
        return null;
    }

    protected RESULT handleException(Exception e) {
        log.error("GlobalExceptionHandler: Time={}\nError={}", System.currentTimeMillis(), e);
        return null;
    }
}
